import { FormControlTypeEnum } from '../../config';

export interface Option {
  label: string;
  value?: string | number;
  children?: Option[];
}

export interface Column {
  group?: string;
  type: FormControlTypeEnum;
  prop: string;
  label: string;
  width?: string | number;
  required?: boolean;
  className?: string;
  rules?: any[];
  options?: Option[] | object;
  span?: number;
  visible?: boolean;
  formProps?: Record<string, any>;
  order?: number;
  colProps?: Record<string, any>;
}
